package com.ruoyi.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购退货对象 erp_purchase_return
 * 
 * @author ruoyi
 * @date 2025-07-17
 */
public class ErpPurchaseReturn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 退货ID，主键 */
    private String id;

    /** 关联采购单管理表ID */
    private String purchaseOrderId;

    /** 退货原因 */
    @Excel(name = "退货原因")
    private String returnReason;

    /** 退货数量 */
    @Excel(name = "退货数量")
    private Long returnQuantity;

    /** 退货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnDate;

    /** 退货状态（如：待处理、已完成等） */
    @Excel(name = "退货状态", readConverterExp = "如=：待处理、已完成等")
    private String status;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setPurchaseOrderId(String purchaseOrderId) 
    {
        this.purchaseOrderId = purchaseOrderId;
    }

    public String getPurchaseOrderId() 
    {
        return purchaseOrderId;
    }
    public void setReturnReason(String returnReason) 
    {
        this.returnReason = returnReason;
    }

    public String getReturnReason() 
    {
        return returnReason;
    }
    public void setReturnQuantity(Long returnQuantity) 
    {
        this.returnQuantity = returnQuantity;
    }

    public Long getReturnQuantity() 
    {
        return returnQuantity;
    }
    public void setReturnDate(Date returnDate) 
    {
        this.returnDate = returnDate;
    }

    public Date getReturnDate() 
    {
        return returnDate;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("purchaseOrderId", getPurchaseOrderId())
            .append("returnReason", getReturnReason())
            .append("returnQuantity", getReturnQuantity())
            .append("returnDate", getReturnDate())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
